﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

//[ExecuteInEditMode]
public class ColiderController : MonoBehaviour {
    public BoxCollider2D HitCollider, BeHitCollider;
	// Use this for initialization
	void Start () {
        HitCollider = transform.FindChild("Attack").GetComponent<BoxCollider2D>();
        BeHitCollider = GetComponent<BoxCollider2D>();
    }
	
    void TestEvent(string s)
    {
        Debug.Log(s);
    }

	// Update is called once per frame
	void Update () {
		
	}
    void OnDrawGizmos()
    {
        Vector2 v = new Vector2(transform.position.x, transform.position.y);
        Gizmos.color = Color.red;
        Gizmos.DrawWireCube(v+HitCollider.offset, HitCollider.size);
        Gizmos.color = Color.blue;
        Gizmos.DrawWireCube(v+BeHitCollider.offset, BeHitCollider.size);
    }

}
